package com.auto.uhoo.tools;

import android.content.Context;
import android.widget.Toast;

import com.auto.uhoo.config.UhooConfig;

/**
 * Created by HHD on 2016/12/5.
 */

public class ToastHelper {

    private static int debugEnable = UhooConfig.TOAST_DEBUG_ENABLE;

    public static void showShortToast(Context context, String content){
        Toast.makeText(context, content, Toast.LENGTH_SHORT).show();
    }


    public static void showLongToast(Context context, String content){
        Toast.makeText(context, content, Toast.LENGTH_LONG).show();
    }

    public static void debugToast(Context context, String content){
        if (debugEnable == 0)
            Toast.makeText(context, content, Toast.LENGTH_SHORT).show();
    }
}
